function func1 (num1:number, num2:number):number {
  return num1 + num2
}

function func2 (num1:number, num2:number): void {
  console.log(num1 + num2)
}

function func3 (num1:number, num2:number): never {
  while(true) { }
  
}

// 定义函数
type myfun002 = (a: number,b: number) => number;

let myfun003:(a: number,b: number) => number = (c, d) => c + d
let func002: myfun002 = (a, b) => a + b

let tuple: [string, () => void] = ['sunxiaoshuang', () => {}]
console.log(tuple[1])
console.log(func002)
